/*
 * =====================================================================================
 *
 *       Filename:  messenger_back.hpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  27.08.2012 17:21:27
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  akoww (), 
 *   Organization:  
 *
 * =====================================================================================
 */

 #ifndef MESSENGER_BACK_HPP_
 #define MESSENGER_BACK_HPP_

#include <string>
#include <vector>

#define MAXLINES 50
#define TRIMLINES 20

enum Person {
	ME,
	STRANGER
};

class MessengerBack {

	public:
		MessengerBack ( void );
		~MessengerBack ( void ); 
		
		void appendMsg ( const std::string&, Person );
		void appendMsg ( const char*, Person );

	private:
		std::vector<bool> m_who;
		std::vector<std::string> m_what;

	protected:

		bool checkSize ( void );
		void resizeVec ( void );

};


#endif
